package com.zhao.dota.security.integration.authenticator;

import com.zhao.dota.bo.AuthenticateUser;
import com.zhao.dota.security.integration.IntegrationAuthentication;
import com.zhao.dota.service.UserService;

import javax.annotation.Resource;

public abstract class AbstractPreparableIntegrationAuthenticator implements IntegrationAuthenticator {

    @Resource
    protected UserService userService;

    @Override
    public abstract AuthenticateUser authenticate(IntegrationAuthentication integrationAuthentication);

    @Override
    public abstract void prepare(IntegrationAuthentication integrationAuthentication);

    @Override
    public abstract boolean support(IntegrationAuthentication integrationAuthentication);

    @Override
    public void complete(IntegrationAuthentication integrationAuthentication) {

    }

}
